package com.boot2.core.utils;

/**
 * @author malongbo
 * @date 15-1-18
 * @package com.pet.project.common.token
 */
public class TokenUtil {

	private static final int length = 6;

	/**
	 * 生成token号码
	 * 
	 * @return token号码
	 */
	public static String generateToken() {
		return generateToken(length);
	}

	/**
	 * 生成token号码
	 * 
	 * @return token号码
	 */
	public static String generateToken(int length) {
		return RandomUtils.randomCustomUUID().concat(RandomUtils.randomString(length));
	}
}
